package com.study.springcloud.serivce;

import com.study.springcloud.pojo.Goods;

import java.util.List;

/**
 * @Author Chen Jie
 * @Date 2022/3/5 13:34
 * @Version 1.0
 */
public interface GoodsService {
     List<Goods> getAllGoods();

     Goods getGoodsById(Integer goodsId);

     int decrByStore(Integer goodsId, Integer buyNum);
}
